abstract class Person {
	public abstract void show();
}
class Dancer extends Person{
	public void show(){
		System.out.println("Dancing!!!");
	}
}
class PersonShow {
	public void method(Person p) {
		p.show();
	}
}
class PersonDancerDemo{
	public static void main(String[] args){
		Person p = new Dancer();
		p.show();
		System.out.println("----------------");
		PersonShow ps = new PersonShow();
		ps.method(new Person(){
			public void show(){
				System.out.println("Sing!!!");
			}
		});

		Person person = new Person() {
			@Override
			public void show() {
				System.out.println("person");
			}
		};
	}
}

